package com.jiang.mall.mallproduct.product.feign.fallback;

import com.jiang.common.exception.BizCodeEnume;
import com.jiang.common.utils.R;
import com.jiang.mall.mallproduct.product.feign.SeckillFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class SeckillFeignServiceFallBack implements SeckillFeignService {

    @Override
    public R getSkuSeckillInfo(Long skuId) {
        log.info("熔断方法调用！");
        return R.error(BizCodeEnume.TooManyRequest_EXCEPTION.getCode(), BizCodeEnume.TooManyRequest_EXCEPTION.getMsg());
    }
}
